#include "config.h"


uint64_t chipid=0;
unsigned long control_time;
char host_name[30]="ESP:";
Preferences pref;

uint8_t pow_state=0;
uint8_t pub_state=0;
uint8_t work_state=0;
int mqtt_jzz=0;
uint natie_time=60000;
uint kabuqinuo_time=90000;
uint yishi_time=60000;
uint clean_time=60000;
uint yeru_pluse=2400;
bool bee_pluse=false;
uint work_times=0;
bool door_reset=false;

/**
 * @brief 
 * wifi config
 */
uint8_t mac_uint8[6]={0};
char mac[17]="";

WiFiClient wifi_client;                                                         // 定义wifiClient实例
/**
 * @brief 
 * mqtt config
 */
PubSubClient mqtt_client;    
char mqtt_sub_topic[40]="";
char mqtt_pub_topic[40]="";
char account[40]="";
char passwd[40]="coffee";

/**
 * @brief 
 * hx711
 */
HX711 scale1;
HX711 scale2;

/**
 * @brief 
 * hall
 */

uint64_t hall_count=0;